<?php if( $product->hasPhoto() ): ?>

    <?php echo image_tag(
                    Files::getDirPath('tiny') . $product->getPhotoName()
                    , array(
                        'border' => '0'
                        , 'alt' => $product->getName()
                        , 'title' => $product->getName()
                    )
                ) ?>

<?php endif; ?>